package gui_interface;





import java.io.FileNotFoundException;
import java.io.IOException;


import evolution.Evolution;






public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args)  {
		//Genome gen = new Genome("Resources/initrules.txt");
		//System.out.println(gen.toString());
		//gen.write("Resources/initrulesTest.txt");
		
		
		//for evolution : last boolean means random init(true) or not follows the given rules
		new Evolution("Resources/config.txt", 
				"Resources/testRules.txt",
				"Resources/New",false,"T","01");
		
		
		
		
		try {
			
			MovieFrame mf = new MovieFrame("Resources/config.txt",
					"Resources/New/actions/01.xml",250);
			mf.validate();
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		/*File dessin = new File("Resources/dessin.txt");
		File actions = new File("Resources/actions.txt");
		File png = new File("Resources/dessin.png");
		
		Collection<Rule> currentRules = new LinkedList<Rule>();
		currentRules.add(new Rule(0,0,0,0,0,0,2));//open right port
		currentRules.add(new Rule(5,length,1,0,0,1,2));
		Environnement env;
		try {
			env = new Environnement(currentRules,dessin,actions,png);
			env.create_shape();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} */
		

	}

}
